<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="ax" uri="http://peru.org.muni" %>
     <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
     <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<title></title>
<script type="text/javascript">
function muestraMens(msj){
	if(msj != '' && msj != 'null'){
		alert(msj);
	}
}
function validaData(){
	var vObs = document.forms[0].observacion.value;
	if(vObs != ''){
		document.forms[0].action='Informe.do?operacion=registrarcarta';
		document.forms[0].submit();
	}else{
		alert('Ingrese las observaciones pertinentes');
	}
	
	
}
</script>
</head>
<body onload="muestraMens('${requestScope.mensaje}')">
<form name="formATec" method="post" action="Informe.do">
  <table border="2" cellpadding="8">
    <tr bgcolor="#FF6600">
      <td colspan="3" class="HeaderColor">
       
        <h4><fmt:message key="cu053.titCartaDesap" /></h4>
        
      </td>
    </tr>
	<tr bgcolor="#C0C0C0">
      <td colspan="3" class="HeaderColor">
        <fmt:message key="cu053.titDatosSoli" />   
      </td>
    </tr>

    <tr >
      <td bgcolor="#DDDDDD" width="12%" nowrap class="LabelColor" style="text-align: right">
        <label for="codsol"> <fmt:message key="cu053.codSol" /> </label>
      </td>
      <td bgcolor="#DDDDDD" colspan="2" class="TitleColor">
        <input type="text" id="codsol" name="codsol" size="35" readonly="readonly" value="${sessionScope.s_codSoli}">
        <br>
      </td>
    </tr>
    <tr style="vertical-align: top">
      <td bgcolor="#DDDDDD" style="text-align: right" class="LabelColor">
        <label for="nomcont"> <fmt:message key="cu053.codInf" /></label>
      </td>
      <td bgcolor="#DDDDDD" colspan="2" class="TitleColor">
        <input type="text" id="codinf" name="codinf" size="35" readonly="readonly" value="${sessionScope.s_codInf}"></input>
      </td>
    </tr>
    <tr  style="vertical-align: top">
      <td bgcolor="#DDDDDD" style="text-align: right" class="LabelColor">
        <label for="estreq"><fmt:message key="cu053.obser" /></label>
      </td>
      <td bgcolor="#DDDDDD" colspan="2" class="TitleColor">
        <textarea id="observacion" name="observacion" cols="45" rows="5"></textarea>
      </td>
    </tr>
	<tr bgcolor="#C0C0C0">
      <td colspan="3"  class="HeaderColor" > 
      <fmt:message key="cu053.avisCorTec" /> <a href="mailto:${requestScope.correo}"><fmt:message key="cu053.linkEbCor" /></a>
      </td>
    </tr>
    <tr bgcolor="#DDDDDD" style="vertical-align: top" class="LabelColor" >
	   <td colspan="3" align="center">
	    <input type="hidden" name="operacion" value="registrarcarta">
	  	<input align="middle" type="button" id="btnRegCarta" name="btnRegCarta" value=<fmt:message key="cu053.btnReCarDes" /> onclick="validaData()">
	  </td>
    </tr>
  </table>
</form>
</body>
</html>
    